package com.of;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.of.mapper") //将该路径下的mapper接口交给容器管理
@EnableSwagger2
public class OfApplication {
    private static final Logger LOGGER = LoggerFactory.getLogger(OfApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(OfApplication.class, args);
        LOGGER.info("程序启动!");
    }

}
